It is necessary to replace the C++ Builder 6 ShlObj.hpp with the one in this directory to compile this example. Please copy that file to the $(BCB)\include directory.